home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / SUPERPD.PAK / PAGESET.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  65 lines

  1. // pageset.h : page setup dialog interface
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13.  
  14. #ifndef _PAGESET_H_
  15. #define _PAGESET_H_
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CPageSetupDlg dialog
  19.  
  20. class CPageSetupDlg : public CDialog
  21. {
  22.     DECLARE_DYNAMIC(CPageSetupDlg)
  23. // Construction
  24. public:
  25.     CPageSetupDlg(CWnd* pParent = NULL);    // standard constructor
  26.     void Initialize();
  27.     void Terminate();
  28.  
  29. // Dialog Data
  30.     //{{AFX_DATA(CPageSetupDlg)
  31.     enum { IDD = IDD_PAGE_SETUP };
  32.     CString m_strFooter;
  33.     CString m_strHeader;
  34.     int     m_iFooterTime;
  35.     int     m_iHeaderTime;
  36.     //}}AFX_DATA
  37.  
  38.     CString m_strFooterOld;
  39.     CString m_strHeaderOld;
  40.     int     m_iFooterTimeOld;
  41.     int     m_iHeaderTimeOld;
  42.  
  43. // Operations
  44.     void FormatHeader(CString& strHeader, CTime& time,
  45.         LPCTSTR pszFileName, UINT nPage);
  46.     void FormatFooter(CString& strFooter, CTime& time,
  47.         LPCTSTR pszFileName, UINT nPage);
  48.  
  49. // Implementation
  50. protected:
  51.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  52.  
  53.     static void FormatFilePage(
  54.         CString& strFormat, LPCTSTR pszFileName, UINT nPage);
  55.  
  56.     // Generated message map functions
  57.     //{{AFX_MSG(CPageSetupDlg)
  58.     //}}AFX_MSG
  59.     DECLARE_MESSAGE_MAP()
  60. };
  61.  
  62. #endif // _PAGESET_H_
  63.  
  64. /////////////////////////////////////////////////////////////////////////////
  65.